#ifndef _CURRENT_1503D_H_
#define _CURRENT_1503D_H_

#include <atlstr.h>
#include "windows.h"
#include "visa.h"

class CCurrent1503D
{
private:
	CString mDevAddress;
	int mChannel;

public:
	CCurrent1503D();
	~CCurrent1503D();

public:
	BOOL init(int channel, CString address);
	CString ReadCurrent(int channel);
	CString ReadVoltage(int channel);
	void SetOutputChannelOnOff(int channel, BOOL isOpen);
	void SetVoltage(int channel, CString Voltage);
	void SetCurrent(int channel, CString current);
	void Reset(void);
	void SwitchChannelRear(BOOL isRear);
	bool InstrWrite(CString strAddr, CString strContent);
	bool InstrRead(CString strAddr, CString *pstrResult);

};

#endif// _CURRENT_1503D_H_
